package com.rpay.common.dto.user;

import org.hibernate.validator.constraints.NotBlank;

import java.math.BigDecimal;

public class WithdrawDTO {
    @NotBlank(message = "钱包不能为空")
    private int wallet_id;

    @NotBlank(message = "数量不能为空")
    private String amount;
    private String fee;
    @NotBlank(message = "费用不能为空")
    private BigDecimal rate;

    public int getWallet_id() {
        return wallet_id;
    }

    public void setWallet_id(int wallet_id) {
        this.wallet_id = wallet_id;
    }

    public String getAmount() {
        return amount;
    }

    public void setAmount(String amount) {
        this.amount = amount;
    }

    public String getFee() {
        return fee;
    }

    public void setFee(String fee) {
        this.fee = fee;
    }

    public BigDecimal getRate() {
        return rate;
    }

    public void setRate(BigDecimal rate) {
        this.rate = rate;
    }

    @Override
    public String toString() {
        return "WithdrawDTO{" +
                "wallet_id=" + wallet_id +
                ", amount='" + amount + '\'' +
                ", fee='" + fee + '\'' +
                ", rate=" + rate +
                '}';
    }
}
